package com.tarena.lbs.basic.web.config;

import com.tarena.lbs.common.passport.encoder.JwtEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 管理一个登录认证解决方案jwt的工具类bean对象
 */
@Configuration
public class JwtEncoderConfig {
    private String secret = "abc123";
    @Bean
    public JwtEncoder init(){
        JwtEncoder jwtEncoder = new JwtEncoder();
        jwtEncoder.setSecret(secret);
        return jwtEncoder;
    }
}

